package com.quanyan.user.service;

import com.quanyan.common.Plugin.PageObj;
import com.quanyan.user.model.db.TbAdminGroup;
import com.quanyan.user.model.vo.request.ReqQueryUserInfo;
import com.quanyan.user.model.vo.request.ReqQueryUserInterest;
import com.quanyan.user.model.vo.response.QueryUserDetail;
import com.quanyan.user.model.vo.response.QueryUserInfo;
import com.quanyan.user.model.vo.response.QueryUserInterest;

import java.util.List;

/**
 * Created by yue.yuan on 2016/7/12.
 */
public interface AdminService {

    /**
     * 分页查询用户信息
     * @param req
     * @return
     */
    PageObj<List<QueryUserInfo>> queryUserInfoByPage(ReqQueryUserInfo req);

    /**
     * 查询用户详情
     * @param userId
     * @return
     */
    QueryUserDetail selectUserDetailById(Integer userId);

    /**
     * 分页查询用户兴趣
     * @param req
     * @param isRegister
     * @return
     */
    PageObj<List<QueryUserInterest>> selectUserInterestsByPage(ReqQueryUserInterest req, boolean isRegister);

    //添加用户组
    void addGroup(TbAdminGroup group);

    //删除用户组
    void deleteGroup(Integer groupId);

    //查询分组列表
    List<TbAdminGroup> selectGroupList();
}
